package com.ruoyi.system.service.project.impl;

import java.util.List;

import com.ruoyi.system.domain.project.research.ResearchProjectsMember;
import com.ruoyi.system.mapper.project.ResearchProjectsMemberMapper;
import com.ruoyi.system.service.project.IResearchProjectsMemberService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 科研项目成员子Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-10-10
 */
@Service
public class ResearchProjectsMemberServiceImpl implements IResearchProjectsMemberService
{
    @Autowired
    private ResearchProjectsMemberMapper researchProjectsMemberMapper;

    /**
     * 查询科研项目成员子
     * 
     * @param id 科研项目成员子主键
     * @return 科研项目成员子
     */
    @Override
    public ResearchProjectsMember selectResearchProjectsMemberById(Long id)
    {
        return researchProjectsMemberMapper.selectResearchProjectsMemberById(id);
    }

    /**
     * 查询科研项目成员子列表
     * 
     * @param researchProjectsMember 科研项目成员子
     * @return 科研项目成员子
     */
    @Override
    public List<ResearchProjectsMember> selectResearchProjectsMemberList(ResearchProjectsMember researchProjectsMember)
    {
        return researchProjectsMemberMapper.selectResearchProjectsMemberList(researchProjectsMember);
    }

    /**
     * 新增科研项目成员子
     * 
     * @param researchProjectsMember 科研项目成员子
     * @return 结果
     */
    @Override
    public int insertResearchProjectsMember(ResearchProjectsMember researchProjectsMember)
    {
        return researchProjectsMemberMapper.insertResearchProjectsMember(researchProjectsMember);
    }

    /**
     * 修改科研项目成员子
     * 
     * @param researchProjectsMember 科研项目成员子
     * @return 结果
     */
    @Override
    public int updateResearchProjectsMember(ResearchProjectsMember researchProjectsMember)
    {
        return researchProjectsMemberMapper.updateResearchProjectsMember(researchProjectsMember);
    }

    /**
     * 批量删除科研项目成员子
     * 
     * @param ids 需要删除的科研项目成员子主键
     * @return 结果
     */
    @Override
    public int deleteResearchProjectsMemberByIds(Long[] ids)
    {
        return researchProjectsMemberMapper.deleteResearchProjectsMemberByIds(ids);
    }

    /**
     * 删除科研项目成员子信息
     * 
     * @param id 科研项目成员子主键
     * @return 结果
     */
    @Override
    public int deleteResearchProjectsMemberById(Long id)
    {
        return researchProjectsMemberMapper.deleteResearchProjectsMemberById(id);
    }
}
